<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<s:action name="getLoginUser" namespace="/"></s:action>
<nav class="navbar navbar-self navbar-fixed-top" role="navigation">
    <div class="container-fluid">
      <div style="margin-left: 30px;" class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand-self" href="index.jsp"><b>需求开发管理平台</b></a>
      </div>
      
      <!-- Split button -->
      <div id="navbar" class="nav navbar-nav navbar-right navbar-collapse collapse" style="margin-top:15px;padding-right:30px;">
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">信息总览</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="selectAllRequireAndDevelop">需求与开发总览</a></li>
				<li><a href="dataAnalysis.jsp">数据分析</a></li>
				<li><a href="select2016RemainedRequirementAndDevelopment">2017年遗留项目</a></li>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">需求管理</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="selectAllRequirement.action">所有需求信息</a></li>
		            <% String user = (String)session.getAttribute("username");
		            if(user.equals("admin") || user.equals("xuqiu")){ %>
		        <li><a href="addRequirement.jsp">添加需求</a></li>
		            <%} %>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">开发管理</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="selectAllDevelopment.action">所有开发信息</a></li>
				<li><a href="remainIdList.action">待处理开发信息</a></li>
				<li><a href="select2016RemainedDevelopment">2017年遗留开发项目</a></li>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">大客户项目</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
				    <li><a href="selectAllBigConsumer.action">大客户项目查询</a></li>
					<li><a href="addBigConsumer.jsp">添加大客户项目</a></li>
			  </ul>
		  </div>
		  
		  <div class="btn-group">
			  <button type="button" class="btn btn-default">营销中项目</button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    	<li><a href="selectAllMarketProject.action">营销中项目查询</a></li>
				    <li><a href="addMarketProject.jsp">添加营销中项目</a></li>
			  </ul>
		  </div>
		  <%--&lt;%&ndash;系统管理&ndash;%&gt;--%>
		  <%--<div class="btn-group">--%>
			  <%--<button type="button" class="btn btn-default">系统管理:<%=(String)session.getAttribute("username")%></button>--%>
			  <%--<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">--%>
				  <%--<span class="caret"></span>--%>
				  <%--<span class="sr-only">Toggle Dropdown</span>--%>
			  <%--</button>--%>
			  <%--<ul  class="dropdown-menu" role="menu">--%>
				  <%--<li><a href="logout.jsp">退出</a></li>--%>
			  <%--</ul>--%>
		  <%--</div>--%>

		  <div class="btn-group">
			  <button type="button" class="btn btn-default">当前用户:<%=(String)session.getAttribute("username")%></button>
			  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			    <span class="caret"></span>
			    <span class="sr-only">Toggle Dropdown</span>
			  </button>
			  <ul  class="dropdown-menu" role="menu">
			    <li><a href="logout.jsp">退出</a></li>
			  </ul>
		  </div>
      </div>    
    </div>
</nav>
<div style="margin-left:4%;margin-right:4%;margin-top:4%;margin-bottom:3%">